package com.java2018.springmvc.book.model;



import java.util.Date;

//@Component("author")
//@JsonIgnoreType
//@JsonNaming()
public class Author {
    private String authorId; //作者id
    private String authorName; //作者名字
    private String authorChName; // 作者中文名
    private String brief; //简介
    private String delFlag; //是否已被删除
    private Date createTime; //创建时间
    private Author createBy; //创建自谁
    private Date updateTime; //更新时间
    private Author updateBy; //更新自谁

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Author getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Author createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Author getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Author updateBy) {
        this.updateBy = updateBy;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }
//    @Value("东方不败")
    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorChName() {
        return authorChName;
    }

    public void setAuthorChName(String authorChName) {
        this.authorChName = authorChName;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Author{" +
                "authorId='" + authorId + '\'' +
                ", authorName='" + authorName + '\'' +
                ", authorChName='" + authorChName + '\'' +
                ", brief='" + brief + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", createTime=" + createTime +
                ", createBy=" + createBy +
                ", updateTime=" + updateTime +
                ", updateBy=" + updateBy +
                '}';
    }
}
